//
//  MainViewController.swift
//  WhyTest
//
//  Created by 宋广越 on 2022/1/6.
//

import UIKit

class MainViewController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let storyNames = ["Home","Keep","Live"]
        for name in storyNames {
             addChildVc(storyName: name)
        }
    }
    
    private  func addChildVc( storyName: String) {
        
        let childVc = UIStoryboard.init(name: storyName, bundle: nil).instantiateInitialViewController()!
        
        addChild(childVc)
        
    }

}
